import java.math.BigInteger;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        BigInteger sum = new BigInteger("0");

        while (true) {
            String input = scanner.nextLine();
            if (input.equalsIgnoreCase("e")) {
                break;
            }

            BigInteger num = new BigInteger(input);
            sum = sum.add(num);
        }


        System.out.println(sum);

        scanner.close();
    }
}